﻿using Microsoft.Scripting.Hosting;
using IronPython.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FetchHTML
{
    public class PythonTool
    {

        static public string generateHtml(string srcHtmlStream, string bookName)
        {
            ScriptRuntime pyRuntime = Python.CreateRuntime();
            dynamic obj = pyRuntime.UseFile("WebCorm.py");
            dynamic result = obj.generate_html(srcHtmlStream, bookName);
            return result;
        }
        static public void generate_pdf(string srcHtmlDir, string outputPdfPath)
        {
        }
    }
}
